// 引入二次封装的axios
import axios from "../utlis/httptool";

// 获取全部数据
export const api_getlist = (params) => axios.get('/api/list' , {params})
// 新增数据
export const api_addlist = (body) => axios.post('/api/list' , body)
// 获取单个数据做反显
export const api_onelist = (id) => axios.get('/api/list'+'/'+id)
// 编辑数据
export const api_enitlist = (id , body) => axios.put('/api/list'+'/'+id , body)
// 删除
export const api_Dellist = (id) => axios.delete('/api/list'+'/'+id)

// 上传头像
export const api_uphead = (oform) => axios.post('/api/uphead' , oform)